package com.mvc.service.upgrade.impl;

import java.io.File;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.dao.mapper.fileManager.FileMangerDao;
import com.mvc.model.healthmanager.archive.FileInfo;
import com.mvc.service.upgrade.FileInfoServiceI;
/**
 * 文件上传接口实现类
 * @author qingjie
 *
 */
@Service
public class FileInfoServiceImpl implements FileInfoServiceI {
	
	@Autowired
	private BaseDaoI<FileInfo> fDaoI;
	@Autowired
	private FileMangerDao fmd;

	@Override
	public FileInfo saveOrUpdate(FileInfo fi) {
		fDaoI.saveOrUpdate(fi);
		return fi;
	}

	@Override
	public void uploadByTable(Long tid, String tname, String picture) {
		fmd.uploadByTable(tid, tname, picture);
	}


}
